package com.test;

public class TwoDimensionalArray {

    public static void main(String[] args) {
        int[][] a = new int[3][4];
        int b = 1;

        for (int i=0;i<3;i++) {

            for (int y=0;y<4;y++) {

                a[i][y] = b++;
            }
        }


        for(int i=0;i<a.length;i++) {

            for(int y=0;y<a[i].length;y++) {

                System.out.println("a[" + i + "][" + y + "]:" + a[i][y]);
            }
        }

    }
}
